﻿using CrazyTalk.Common;

namespace CrazyTalk.Config
{
    public class Consts
    {
        /// <summary>
        /// 无权限提示文本
        /// </summary>
        public const string sys_nopermiss = "您没有权限操作此页面！";

        /// <summary>
        /// sysconfig表系统邮箱资料 KEY
        /// </summary>
        public const string sysEmailInfoKey = "sysEmailInfo";

        /// <summary>
        /// 兑换游戏币比率 KEY
        /// </summary>
        public const string ExchangeAmount = "ExchangeAmount";
        /// <summary>
        /// 网吧充值折扣KEY
        /// </summary>
        public const string CafeRechargeDiscount = "CafeRechargeDiscount";
        /// <summary>
        /// 玩家充值折扣KEY
        /// </summary>
        public const string MemberRechargeDiscount = "MemberRechargeDiscount";
        /// <summary>
        /// 前台首页游戏顶部图片
        /// </summary>
        public const string PlatTopImg = "PlatTopImg";
        /// <summary>
        /// 前台LOGO下提示信息
        /// </summary>
        public const string PlatTipMsg = "PlatTipMsg";
        /// <summary>
        /// 推广员分成设置
        /// </summary>
        public const string AsstShareRateBase = "AsstShareRateBase";

        /// <summary>
        ///  记住用户名时间 Key
        /// </summary>
        public const string SetRemebTime = "SetRemebTime";

        /// <summary>
        /// 用户登录过期 KEY
        /// </summary>
        public const string LoginExpiredTime = "LoginExpiredTime";
        /// <summary>
        /// 管理员给网吧充值到平台的金额上限
        /// </summary>
        public const string SysConfig_RechargeCafeByRootMax = "RechargeCafeByRootMax";
        /// <summary>
        /// 管理员给网吧充值到平台的金额上限
        /// </summary>
        public const string SysConfig_AsstShareRateBase = "AsstShareRateBase";
        /// <summary>
        /// 每天玩家每天充值上限(推广渠道)
        /// </summary>
        public const string RechargePlayerByGPPSMax = "RechargePlayerByGPPSMax";
        /// <summary>
        /// 游戏充值日志记录 key 
        /// SakForNet.LoggerManager.GetLogger("gamepay")
        /// </summary>
        public const string PayLog = "gamepay";
        /// <summary>
        /// 活动发起、修改日志
        /// </summary>
        public const string Activity = "activity";
        /// <summary>
        /// 登录过期时间
        /// </summary>
        public static readonly int LoginTimeOut = 30;

        /// <summary>
        /// 推广员绑定网吧最大数量
        /// </summary>
        public const string MaxcafesNum = "tgy_MaxcafesNum";
        /// <summary>
        /// 玩家超过多长时间没有来网吧登录过，则与推广员解除推广关系
        /// </summary>
        public const string CannelTime = "player_TimeOut";

        public const string cookiedomain = "cookiedomain";

        /// <summary>
        /// 验证码加密密码
        /// </summary>
        public const string VcodeUrlKeyScrc = "xh938u";
        static Consts()
        {
            LoginTimeOut = ConfigHelper.GetConfigInt("LoginExpiredTime");
        }

        /// <summary>
        /// 验证码session[vcode]
        /// </summary>
        public const string vcode = "vcode";

        public const string platlink = "platlink";

        /// <summary>
        /// 论坛API KEY
        /// </summary>
        public const string ApiKey = "apikey";
        /// <summary>
        /// 论坛密钥
        /// </summary>
        public const string Secret = "secret";

        /// <summary>
        /// 论坛网址
        /// </summary>
        public const string BBSUrl = "bbsurl";

        /// <summary>
        /// 论坛所在域
        /// </summary>
        public const string DNTCookieDomain = "DNTCookieDomain";
    }
}
